package tt.dz.egobus.servicemanager.business.filter;

import tt.dz.egobus.servicemanager.business.distance.PointFilter;
import tt.dz.egobus.servicemanager.business.point.BusPoint;

/**
 * @author Anson
 * @date 17-3-28
 * @name 添加当前的有效的业务码过滤
 * @since 1.0.3
 */
public class BusinessCodeFilter implements PointFilter {

    @Override
    public boolean isFilter(BusPoint point) {
        return point.getBusinessCodes() != null && point.getBusinessCodes().length > 0;
    }
}
